def bool_institution_query(inst_id):
    institution_query = {
        "bool": {"should": [
            {"term": {
                "host_label.id": {
                    "value": inst_id
                }
            }},
            {"nested": {
                "path": "coop_labels",
                "query": {
                    "term": {
                        "coop_labels.id": {
                            "value": inst_id
                        }
                    }
                }
            }}
        ]}
    }
    return institution_query


role_import = {"一般参与": 1, "中等参与": 2, "深度参与": 3}
activity_import = {"常规": 1, "重点": 2, "重大": 3}
